<template>
    <div style="width: 100vw;height: 100vh;overflow: hidden;display: flex">
        <div style="flex: 1">
          <el-image
              src="https://pic4.zhimg.com/v2-e229c5e0cf12d821fa9922a3d860336b_r.jpg"
              style="width: 100%;height: 100%;" fit="cover">
          </el-image>
        </div>
      <div class="welcome-title">
        <div style="font-size: 55px;font-weight: bold">欢迎来到Alan的个人博客</div>
        <div style="font-size: 20px;margin-top: 20px">本项目仅供个人学习使用</div>
      </div>
        <div class="right-card">
            <router-view v-slot="{ Component }">
                <transition name="el-zoom-in-center" mode="out-in">
                    <component :is="Component" style="height: 100%"/>
                </transition>
            </router-view>
        </div>
    </div>
</template>

<script setup>

</script>

<style scoped>
.right-card {
  width: 400px;
  z-index: 1;
  background-color: var(--el-bg-color);
}

.welcome-title {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    text-shadow: 0 0 10px black;
}
</style>
